﻿@model IEnumerable<StudentManagement.Models.Student>

@{
    ViewBag.Title = "Student List";
    Layout = "~/Views/Shared/_AdminNestedLayout.cshtml";
 
}
<!-- Action link for student create view-->
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<!-- student grid list -->
<table class="grid">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
      
        <th>
            @Html.DisplayNameFor(model => model.BranchName)
        </th>
       
        <th>
            @Html.DisplayNameFor(model => model.CourseName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Gender)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Address)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <!--Link the storngly type partial view-->
        @Html.Partial("_StudentItem",item)
    </tr>
}

</table>
<!-- /student grid list -->